<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml" 
   xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core" 
   xmlns:ui="http://java.sun.com/jsf/facelets" 
   xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich" 
   xmlns:my="http://java.sun.com/jsf/composite/components">
	<h:form>
		<h:panelGrid columns="2">
			Nome:
			<h:inputText id="nomecodigo" value="#{codigoRegistration.idModelo}" size="30"  />

			Modelo:
			<h:inputTextarea id="codigoModelo" value="#{codigoRegistration.linhasDeCodigo}" rows="28" cols="100" />
		</h:panelGrid>

		<h:panelGrid columns="5" columnClasses="col100px,col200px,col300px,col200px">
			Modelos:
			<h:selectOneMenu id="listadecodigo" value="#{codigoRegistration.idModelo2Buscar}" style=" width : 235px;">
				<f:selectItems value="#{modelo2Value}" />
			</h:selectOneMenu>

			<h:commandButton action="#{codigoRegistration.geraListaCodigoMedelo}" value="Obtem código modelo"/>

			<h:commandButton action="#{codigoRegistration.register}" value="Grava modelo" />
		</h:panelGrid>
		<h:messages styleClass="messages" errorClass="invalid" infoClass="valid" warnClass="warning" globalOnly="true" />

		<div id="newCodigoMessages" class="update" />
	</h:form>
</ui:composition>
